package com.xsz.pda.net;

public class Constant {

    public static class Message {

        /**
         * 相机刷新一帧
         */
        public static final String ON_FRAME = "com.yryp.getep.ON_FRAME";
        public static final String ON_IP_CHANGED = "com.yryp.getep.ON_IP_CHANGED";

        public static final String RESTART_APP = "com.yryp.getep.RESTART_APP";
        public static final String OPEN_GATE = "com.yryp.getep.OPEN_GATE";
        public static final String UPGRADE = "com.yryp.getep.UPGRADE";


        public static final String CONNECT_CONTROL_SERVER_STATE = "com.yryp.getep.CONTROL_STATE";
        public static final String CONNECT_SERVER_STATE = "com.yryp.getep.SERVER_STATE";

        public static final int START_APP = 1;
        public static final int AUTO_RESTART = 2;

    }

    public static final int RESTART_APP = 101;
    public static final int RESTART_DEVICE = 102;
    public static final int OPEN_GATE = 103;
    public static final int LIGHT_ON = 104;
    public static final int LIGHT_OFF = 105;

    public static final int CONFIG_ALL = 200;
    public static final int CONFIG_CAMERA = 201;
    public static final int CONFIG_RFID = 202;

    public static final int CONFIG_FACE = 301;
    public static final int CONFIG_APP = 401;

    public static final int CONFIG_VALIDATE = 501;
    public static final int CONFIG_AUTO_RESTART = 601;

    public static final int SYNC_ALL_TICKET = 700;

    public static final int SYNC_TICKET = 701;

    //同步人脸信息
    public static final int SYNC_FACE = 702;

    //同步验票信息
    public static final int SYNC_CHECK_RECORD = 703;

    //同步基础配置
    public static final int SYNC_CHECK_BASE = 704;

    public static final int SYNC_DEVICE_CONFIG = 711;

    public static final int UPGRADE = 801;


    //连接状态
    public static final int CONNECT_STATUS = 901;

    //连接服务器成功
    public static final int CONNECT_SUCCESS = 902;

    /**
     * api
     */
    public static final int CONTROL_SERVER_PORT = 8080;
    public static final String CONTROL_URL_REGISTER = "/checker/api/client/register";
//    public static final String CONTROL_URL_DEVICE_CONFIG = "/checker/api/client/getDeviceTicktTypes";
    public static final String CONTROL_URL_DEVICE_CONFIG = "/checker/api/client/getDeviceConfig";
    public static final String GET_ALL_GROUPS = "/checker/api/client/deviceGroup/list";
}